home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / Think C dcmd 1.0.1.sit / Think C dcmd 1.0.1 ƒ / Think Put Lib source / PutBinary.c < prev    next >
MacBinary  |  1994-08-31  |  1.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: PutBinary.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Aug 31 18:53:18 1994, modified Wed Aug 31 18:53:18 1994, creator Think C, type ASCII, 570 bytes "PutBinary.c" , at 0x2ba 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 50 75 74 42 69 6e | 61 72 79 2e 63 00 00 00 |..PutBin|ary.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 02 3a 00 | 00 01 7e aa 8a ba 5e aa |......:.|..~...^.|
|00000060| 8a ba 5e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..^.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 00 cd 00 00 |........|........|
|00000080| 76 6f 69 64 20 50 75 74 | 43 68 61 72 28 63 68 61 |void Put|Char(cha|
|00000090| 72 20 63 29 3b 0d 76 6f | 69 64 20 50 75 74 54 65 |r c);.vo|id PutTe|
|000000a0| 78 74 28 63 6f 6e 73 74 | 20 63 68 61 72 2a 20 73 |xt(const| char* s|
|000000b0| 2c 20 69 6e 74 20 6c 65 | 6e 20 29 3b 0d 76 6f 69 |, int le|n );.voi|
|000000c0| 64 20 5f 5f 42 69 6e 54 | 6f 54 65 78 74 20 28 75 |d __BinT|oText (u|
|000000d0| 6e 73 69 67 6e 65 64 20 | 6c 6f 6e 67 20 62 69 6e |nsigned |long bin|
|000000e0| 2c 20 63 68 61 72 2a 20 | 73 74 72 20 29 3b 0d 0d |, char* |str );..|
|000000f0| 0d 76 6f 69 64 20 50 75 | 74 42 69 6e 61 72 79 20 |.void Pu|tBinary |
|00000100| 28 75 6e 73 69 67 6e 65 | 64 20 6c 6f 6e 67 20 69 |(unsigne|d long i|
|00000110| 2c 20 69 6e 74 20 6e 7a | 29 0d 7b 0d 09 09 63 68 |, int nz|).{...ch|
|00000120| 61 72 2a 09 20 73 74 72 | 20 3d 20 22 30 30 30 30 |ar*. str| = "0000|
|00000130| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |00000000|00000000|
|00000140| 30 30 30 30 30 30 30 30 | 30 30 30 30 22 3b 0d 09 |00000000|0000";..|
|00000150| 09 69 6e 74 09 09 20 66 | 69 72 73 74 4e 7a 3b 0d |.int.. f|irstNz;.|
|00000160| 09 0d 09 69 66 20 28 20 | 6e 7a 20 3e 20 30 20 26 |...if ( |nz > 0 &|
|00000170| 26 20 6e 7a 20 3c 3d 20 | 33 32 20 29 0d 09 7b 0d |& nz <= |32 )..{.|
|00000180| 09 09 66 69 72 73 74 4e | 7a 20 3d 20 6e 7a 3b 0d |..firstN|z = nz;.|
|00000190| 09 09 0d 09 09 5f 5f 42 | 69 6e 54 6f 54 65 78 74 |.....__B|inToText|
|000001a0| 20 28 69 2c 20 73 74 72 | 20 29 3b 0d 09 0d 09 09 | (i, str| );.....|
|000001b0| 50 75 74 43 68 61 72 28 | 20 27 7e 27 20 29 3b 0d |PutChar(| '~' );.|
|000001c0| 09 09 0d 09 09 77 68 69 | 6c 65 20 28 20 6e 7a 20 |.....whi|le ( nz |
|000001d0| 25 20 34 20 29 0d 09 09 | 7b 0d 09 09 09 50 75 74 |% 4 )...|{....Put|
|000001e0| 43 68 61 72 28 20 73 74 | 72 5b 33 32 2d 6e 7a 5d |Char( st|r[32-nz]|
|000001f0| 20 29 3b 0d 09 09 09 6e | 7a 2d 2d 3b 0d 09 09 7d | );....n|z--;...}|
|00000200| 0d 09 09 0d 09 09 69 66 | 20 28 20 6e 7a 20 26 26 |......if| ( nz &&|
|00000210| 20 6e 7a 20 21 3d 20 66 | 69 72 73 74 4e 7a 20 29 | nz != f|irstNz )|
|00000220| 20 50 75 74 43 68 61 72 | 28 27 2c 27 29 3b 0d 09 | PutChar|(',');..|
|00000230| 09 0d 09 09 77 68 69 6c | 65 20 28 20 6e 7a 20 29 |....whil|e ( nz )|
|00000240| 09 09 09 09 09 2f 2f 20 | 6f 6e 20 65 6e 74 72 79 |.....// |on entry|
|00000250| 2c 20 6e 7a 20 69 73 20 | 61 20 6d 75 6c 74 69 70 |, nz is |a multip|
|00000260| 6c 65 20 6f 66 20 34 0d | 09 09 7b 0d 09 09 09 50 |le of 4.|..{....P|
|00000270| 75 74 54 65 78 74 28 20 | 26 73 74 72 5b 33 32 2d |utText( |&str[32-|
|00000280| 6e 7a 5d 2c 20 34 20 29 | 3b 0d 09 09 09 6e 7a 20 |nz], 4 )|;....nz |
|00000290| 2d 3d 20 34 3b 0d 09 09 | 09 69 66 20 20 28 20 6e |-= 4;...|.if ( n|
|000002a0| 7a 20 29 20 50 75 74 43 | 68 61 72 28 27 2c 27 29 |z ) PutC|har(',')|
|000002b0| 3b 0d 09 09 7d 0d 09 7d | 0d 7d 00 00 00 00 00 00 |;...}..}|.}......|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000310| 42 67 4e ad 10 f2 28 40 | 4a 46 67 00 00 be 2f 2e |BgN...(@|JFg.../.|
|00000320| ff f8 4e ad 13 9a 60 00 | 00 b2 20 6e ff f8 4a 28 |..N...`.|.. n..J(|
|00000330| 0b 50 75 74 42 69 6e 61 | 72 79 2e 63 02 00 02 00 |.PutBina|ry.c....|
|00000340| 54 45 58 54 4b 41 48 4c | 01 00 ff ff ff ff 00 00 |TEXTKAHL|........|
|00000350| 02 00 54 45 58 54 4b 41 | 48 4c 01 00 ff ff ff ff |..TEXTKA|HL......|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 aa 25 2a 4f 00 00 | 02 3a 00 00 01 7e fe 20 |...%*O..|.:...~. |
|00000380| 48 6e ff fc 48 6e ff f0 | 2f 2e ff f4 42 67 4e ad |Hn..Hn..|/...BgN.|
|00000390| 11 2a 2f 00 4e ad 10 6a | 2d 40 fe 20 2f 2e ff f8 |.*/.N..j|-@. /...|
|000003a0| 48 6e ff fc 42 67 4e ad | 10 f2 28 40 2f 0c 2f 2e |Hn..BgN.|..(@/./.|
|000003b0| ff f8 2f 2e ff fc 2f 2e | 00 08 42 a7 4e ad 11 42 |../.../.|..B.N..B|
|000003c0| 2f 00 4e ad 10 6a 28 40 | 60 10 2f 2e ff f8 2f 2e |/.N..j(@|`./.../.|
|000003d0| 00 08 42 67 4e ad 10 f2 | 28 40 41 ed bd 96 43 ee |..BgN...|(@A...C.|
|000003e0| fe 94 70 18 22 d8 51 c8 | ff fc 41 ee fe 30 43 ed |..p.".Q.|..A..0C.|
|000003f0| bd 96 70 18 22 d8 51 c8 | ff fc 2b 44 bd 2e 41 ed |..p.".Q.|..+D..A.|
|00000400| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 03 01 dd |........|...*....|
|00000430| 02 7d 00 36 00 2c 01 c0 | 02 5c aa 8a 74 70 00 00 |.}.6.,..|.\..tp..|
|00000440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00000450| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 92 71 a4 |...L...L|...2..q.|
|00000460| 12 00 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000470| 00 0a 03 ed ff ff 00 00 | 00 00 00 92 6f 5c 00 00 |........|....o\..|
+--------+-------------------------+-------------------------+--------+--------+